import request from '@/utils/request'

// 查询列表
export function projectList(query) {
    return request({
        url: '/project',
        method: 'get',
        params: query,
    })
}

// 创建项目
export function addProject(data) {
    return request({
        url: '/project',
        method: 'post',
        data,
    })
}

// 删除项目
export function deleteProject(id) {
    return request({
        url: `/project/${id}`,
        method: 'delete',
    })
}
